//
//  DDFavouriteCollectionCell.m
//  Dingdong
//
//  Created by 程强 on 16/11/15.
//  Copyright © 2016年 程强. All rights reserved.
//

#import "DDFavouriteCollectionCell.h"

@implementation DDFavouriteCollectionCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    _cancelBtn.layer.cornerRadius = 3.0;
    _buyBtn.layer.cornerRadius = 3.0;
}

- (IBAction)cancelCollectionClick:(id)sender
{
    if (self.cancelBlock) {
        self.cancelBlock();
    }
}
- (IBAction)buyClick:(id)sender
{
    if (self.buyBlock) {
        self.buyBlock();
    }
}
- (void)userCollectionBuy:(CollectionOperation)buy cancel:(CollectionOperation)cancel
{
    self.buyBlock = buy;
    self.cancelBlock = cancel;
}
@end
